/////////////////////////////////////////////
// AcApDocManagerReactor reactors.

#include "StdAfx.h"
#include "StdArx.h"


CMADocReact::CMADocReact(const bool autoInitAndRelease)
{
	m_autoInitAndRelease = autoInitAndRelease;
	if (m_autoInitAndRelease)
		if (NULL != acDocManager)
			acDocManager->addReactor(this);
		else
			m_autoInitAndRelease = false;
}

CMADocReact::~CMADocReact()
{
	if (m_autoInitAndRelease)
		if (NULL != acDocManager)
			acDocManager->removeReactor(this);
}

void CMADocReact::documentCreated(AcApDocument* pDocCreating)
{
	CMATransReact *pTrans = new CMATransReact(true, pDocCreating);
}

